package com.security.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: TongRui乀
 * @Date: 2020-04-06 9:17
 * @description：
 */
public interface PermissionService {

    /**
     *  判断当前请求是否有权限
     * @param request
     * @param authentication
     * @return
     */
    public boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
